package com.youpai.platform.vulture.service.router.impl;

import com.youpai.platform.vulture.service.entity.dto.ReceiveMessageDTO;
import com.youpai.platform.vulture.service.entity.dto.SendMessageDTO;
import com.youpai.platform.vulture.service.router.MessageRouterService;
import com.youpai.platform.vulture.service.facade.VultureMessageFacadeInterface;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @date: 2022/7/11 10:49
 * @author: Anna
 * @version: 1.0
 * @description: 消息路由
 */
@Component
public class MessageRouterServiceImpl implements MessageRouterService {

    @Resource
    private VultureMessageFacadeInterface vultureMessageFacadeInterface;

    @Override
    public void sendMessage(SendMessageDTO sendMessageDTO) {
        vultureMessageFacadeInterface.sendMessage(sendMessageDTO);
    }
}
